// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

//导入 axios  库
import axios from "axios";
// 引用 ElementUI 插件
import ElementUI from "element-ui";
// 引用 ElementUI 样式
import "element-ui/lib/theme-chalk/index.css";

// 通过 Vue.use 注册插件
Vue.use(ElementUI);

//在Vue原型上绑定 axios  对象
Vue.prototype.$axios = axios;
Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
